home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / SOM / OpenDoc and SOM / IDL / FocusMod.idl < prev    next >
Encoding:
Text File  |  1994-04-19  |  1.9 KB  |  74 lines  |  [TEXT/MPS ]

  1. //# Copyright:    © 1993-94 by Apple Computer, Inc., all rights reserved.
  2. #ifndef _FOCUSMOD_
  3. #define _FOCUSMOD_
  4.  
  5. #ifndef _ODOBJECT_
  6. #include "ODObject.idl"
  7. #endif
  8.  
  9. //=====================================================================================
  10. // Classes defined in this interface
  11. //=====================================================================================
  12.  
  13. interface  ODFocusModule;
  14.  
  15. //=====================================================================================
  16. // Classes used by this interface
  17. //=====================================================================================
  18.  
  19. interface  ODSession;
  20. interface  ODFrame;
  21. interface  ODFocusOwnerIterator;
  22.  
  23. //=====================================================================================
  24. // Class ODFocusModule
  25. //=====================================================================================
  26.  
  27. interface ODFocusModule : ODObject
  28. {
  29.     void InitFocusModule(in ODSession session);
  30.  
  31.     ODBoolean IsFocusExclusive(in ODTypeToken focus);
  32.  
  33.     void SetFocusOwnership(in ODTypeToken focus,in  ODFrame frame);
  34.  
  35.     void UnsetFocusOwnership(in ODTypeToken focus,in  ODFrame frame);
  36.  
  37.     ODFrame  GetFocusOwner(in ODTypeToken focus);
  38.  
  39.     ODFocusOwnerIterator  CreateOwnerIterator(in ODTypeToken focus);
  40.  
  41.     ODBoolean BeginRelinquishFocus(in ODTypeToken focus,in
  42.                         ODFrame requestingFrame);
  43.  
  44.     void CommitRelinquishFocus(in ODTypeToken focus,in
  45.                       ODFrame requestingFrame);
  46.  
  47.     void AbortRelinquishFocus(in ODTypeToken focus,in
  48.                       ODFrame requestingFrame);
  49.  
  50. #ifdef __SOMIDL__
  51.     implementation
  52.       {
  53.     override:
  54.              somInit,
  55.              somUninit;
  56.          
  57.        releaseorder:
  58.         InitFocusModule,
  59.         IsFocusExclusive,
  60.         SetFocusOwnership,
  61.         UnsetFocusOwnership,
  62.         GetFocusOwner,
  63.         CreateOwnerIterator,
  64.         BeginRelinquishFocus,
  65.         CommitRelinquishFocus,
  66.         AbortRelinquishFocus;
  67.         
  68.  
  69.       };
  70. #endif
  71. };
  72.  
  73. #endif //# _FOCUSMOD_
  74.